package com.macro.mall.portal.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * 生成订单时传入的参数
 * Created by macro on 2018/8/30.
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class OrderParam {
    @ApiModelProperty("收货地址ID")
    private Long memberReceiveAddressId;
    @ApiModelProperty("优惠券ID")
    private Long couponId;
    @ApiModelProperty("使用的积分数")
    private Integer useIntegration;
    @ApiModelProperty("支付方式")
    private Integer payType;
    @ApiModelProperty("被选中的购物车商品ID")
    private List<Long> cartIds;
    @ApiModelProperty("商品详情页下单时，页面传入的商品规格id")
    private Long skuId;
    @ApiModelProperty("商品详情页下单时，页面传入的商品数量")
    private Long quantity;
    @ApiModelProperty("店铺id")
    private Long storeId;
    @ApiModelProperty("是否是代下单订单：0->非代下单；1->是代下单 默认0")
    private Integer replaceOrder;
    @ApiModelProperty("带下单用户id")
    private Long replaceUserId;
    @ApiModelProperty("订单备注")
    private String note;
    @ApiModelProperty(value = "经度")
    private BigDecimal lon;
    @ApiModelProperty(value = "纬度")
    private BigDecimal lat;
    @ApiModelProperty(value = "商品id")
    private Long productId;
    @ApiModelProperty(value = "团购id")
    private Long groupBuyId;
}
